#include <stdio.h>

int sequential_search(int arr[], int len, int target){
    for(int i = 0; i < len; i++){
        if(arr[i] == target){
            return i;
        }
    }
    return -1;
}

int main(void){

    int arr[] = {1,2,3,4,5,6,7,8,9,10};
    int len = sizeof(arr)/sizeof(arr[0]);
    int target = 7;
    int status = sequential_search(arr, len, target);
    if(status == -1){
        printf("Element not found\n");
    }else{
        printf("Element found at index %d\n", status);
    }
    return 0;
}